package com.yswy.backstage.dto.req;

import com.yswy.domain.vo.dto.BaseFilter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

/**
 * @author 19401
 * @date 2022/6/10 15:09
 **/
@Data
@EqualsAndHashCode(callSuper = true)
public class PermissionPageFilter  extends BaseFilter {
    @ApiModelProperty("权限名称 关键字查询")
    private String keyWord;
    @ApiModelProperty("权限名称")
    private String permissionName;
    @ApiModelProperty("冻结状态 true:冻结 false:不冻结")
    private Boolean freezingSatus;

    public String getKeyWord() {
        return StringUtils.isNotEmpty(keyWord) ? keyWord.trim() : keyWord;
    }
}
